package cn.chencq.moudle.thuser.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.chencq.moudle.thuser.entity.ThUser;
import cn.chencq.moudle.thuser.service.ThUserService;
import cn.chencq.utils.R;

@RestController
@RequestMapping("/thuser")
public class ThUserController {

	@Autowired
	private ThUserService thUserService;

	@RequestMapping("/checkLoginPassword")
	public R checkLoginPassword(String name, String password, String type) {
		List<ThUser> userList = thUserService.checkLoginPassword(name, password, type);
		return R.ok().put("userList", userList);
	}
	
	
	@RequestMapping("/checkWithdrawPassword")
	public R checkWithdrawPassword(String password, String type) {
		List<ThUser> userList = thUserService.checkWithdrawPassword(password, type);
		return R.ok().put("userList", userList);
	}
}
